package com.intehel.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2022/5/30 16:21
 * @Version:
 */
@RestController
@RequestMapping("/stock")
public class StockController {
    @Value("${server.port}")
    private String port;

    @PostMapping("/reduce")
    public String reduce(){
        return "stock-service success! 端口为：" + port;
    }
}
